package com.itany.nmms.service;

import com.itany.nmms.entity.ProductType;
import com.itany.nmms.exception.ProductTypeExistException;
import com.itany.nmms.exception.RequestParameterErrorException;
import com.itany.nmms.exception.ServiceException;

import java.util.List;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/4/28 9:06
 * Version:1.0-SNAPSHOT
 * Description:
 */
public interface ProductTypeService {

    /**
     * 添加商品类型
     * @param name  类型名称
     */
    public void addType(String name) throws RequestParameterErrorException, ProductTypeExistException, ServiceException;

    /**
     * 查询所有商品类型信息
     * @return
     */
    public List<ProductType> findAll() throws ServiceException;

    /**
     * 查询有效的商品类型
     * @return
     */
    public List<ProductType> findEnable() throws ServiceException;
}
